package net.sudot.chess;

import net.sudot.chess.business.model.BaseEntity;
import net.sudot.commons.lock.Lock;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 应用启动入口
 *
 * @author tangjialin on 2018-08-22.
 */
@ServletComponentScan
@EnableTransactionManagement
@EntityScan(basePackageClasses = BaseEntity.class)
@SpringBootApplication(scanBasePackageClasses = {Application.class, Lock.class})
public class Application {
    public static void main(String[] args) throws Exception {
        SpringApplication.run(Application.class, args);
    }
}
